
set (HEADERS    config.h
                findme.h
                popt.h
                poptdll.h
                poptint.h
                system.h)

set (SOURCES    popt.c
                findme.c
                poptconfig.c
                popthelp.c
                poptparse.c)

include_directories("${CMAKE_CURRENT_SOURCE_DIR}" "${PROJECT_SOURCE_DIR}")

if(MSVC)
    add_definitions(-D_CRT_SECURE_NO_WARNINGS)
endif()

add_library(popt STATIC ${HEADERS} ${SOURCES})
